<?php

namespace frontend\models;

use Yii;

/**
 * This is the model class for table "dh_web_ad".
 *
 * @property integer $id
 * @property string $name
 * @property integer $img_id
 * @property integer $status
 * @property string $created_at
 * @property integer $sort
 * @property string $about
 * @property string $content
 * @property string $Inputer
 */
class DhWebAd extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'dh_web_ad';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['img_id', 'status', 'sort'], 'integer'],
            [['created_at'], 'safe'],
            [['content'], 'string'],
            [['name', 'about', 'Inputer'], 'string', 'max' => 255]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'name' => '地址',
            'img_id' => '图片地址',
            'status' => '1显示  0不显示',
            'created_at' => '设置时间',
            'sort' => 'ASC排序',
            'about' => '人物简介',
            'content' => '人物生平',
            'Inputer' => '信息来源',
        ];
    }
}
